const { spawn } = require("child_process");

const childProcess = spawn("npm", ["run", "build:dev"], {
  cwd: __dirname,
});
childProcess.stdout.on("data", (data) => {
  console.log(`子进程的输出：${data}`);
});
childProcess.on("exit", (code) => {
  console.log(`子进程退出，退出状态码：${code}`);
});
